import 'package:flutter/material.dart';
import '../model/health_record.dart';
import 'add_activity_record_dialog.dart';
import 'add_custom_record_dialog.dart';
import 'add_diaper_record_dialog.dart';
import 'add_doctor_record_dialog.dart';
import 'add_feeding_record_dialog.dart';
import 'add_food_record_dialog.dart';
import 'add_height_record_dialog.dart';
import 'add_medicine_record_dialog.dart';
import 'add_milestone_record_dialog.dart';
import 'add_mood_record_dialog.dart';
import 'add_sleep_record_dialog.dart';
import 'add_temperature_record_dialog.dart';
import 'add_vaccine_record_dialog.dart';
import 'add_weight_record_dialog.dart';

// void showRecordDialogByType(
//   BuildContext context,
//   RecordType type,
//   String babyId,
// ) {
//   final dialogMap = {
//     RecordType.feeding: AddFeedingRecordDialog(babyId: babyId),
//     RecordType.diaper: AddDiaperRecordDialog(babyId: babyId),
//     RecordType.sleep: AddSleepRecordDialog(babyId: babyId),
//     RecordType.temperature: AddTemperatureRecordDialog(babyId: babyId),
//     RecordType.medicine: AddMedicineRecordDialog(babyId: babyId),
//     RecordType.vaccine: AddVaccineRecordDialog(babyId: babyId),
//     RecordType.weight: AddWeightRecordDialog(babyId: babyId),
//     RecordType.height: AddHeightRecordDialog(babyId: babyId),
//     RecordType.doctor: AddDoctorRecordDialog(babyId: babyId),
//     RecordType.milestone: AddMilestoneRecordDialog(babyId: babyId),
//     RecordType.food: AddFoodRecordDialog(babyId: babyId),
//     RecordType.activity: AddActivityRecordDialog(babyId: babyId),
//     RecordType.mood: AddMoodRecordDialog(babyId: babyId),
//     RecordType.custom: AddCustomRecordDialog(babyId: babyId),
//   };
//
//   final dialog = dialogMap[type];
//   if (dialog == null) {
//     throw UnimplementedError('Dialog for type $type not implemented');
//   }
//
//   showDialog(context: context, builder: (_) => dialog);
// }
